package cn.whitecao;

import cn.whitecao.configuration.AA;
import cn.whitecao.configuration.TestConfiguration;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

@Component
public class UserDao {
	//@Autowired
	TestConfiguration testConfiguration;
	@Autowired
	AA aa;
	@Autowired
	public void setTestConfiguration(TestConfiguration testConfiguration) {
		this.testConfiguration = testConfiguration;
	}

	public UserDao(DeviceDao DeviceDao) {
		System.out.println("init UserDao");
	}

	@PostConstruct
	public void MyCallBack(){
		System.out.println(" MyCallBack ");
		testConfiguration.getAA();
		testConfiguration.getAA();
		testConfiguration.getAA();

	}

}
